package com.example.springbootmybatisdemo;

import java.lang.annotation.*;

/**
 * @author xm, huangwei_xm@163.com
 * @version 1.3
 * @description
 * @Copyright 2022- huangwei All rights reserved.
 * @since 2022.04.24
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OperatingRecord {
    /**
     * 操作记录表名称
     *
     * @return
     */
    String tableName();

    /**
     * 主表id，默认id
     *
     * @return
     */
    String idName() default "id";

    /**
     * 是否记录主表id,默认为不记录
     *
     * @return
     */
    boolean isRecordPrimaryId() default false;

    String[] ignoreFiled() default {};
}
